<?
class GuestbookBO extends BusinessObject{

  /* private function using in constructors*/ 
  function setAttributes(){
    $this->fields   = array(
		'id'		=>	"guestbook_ID",
		'text'		=>	"guestbook_Text",
		'date'		=>	"guestbook_Date",
		'visibility'=>	"guestbook_Visible",
		'nickname'	=>	"guestbook_NickName",
		'email'		=>	"guestbook_email",
		'rating'	=>	"guestbook_rating",
		'ip'		=>	"guestbook_IP",
		'referer'	=>	"guestbook_Referer",
		'lang_id'	=>	"guestbook_Lang");
    BusinessObject::setAttributes();
  }
  /* constructor */
  function GuestbookBO(){
    /** super(tableName) */
    BusinessObject::BusinessObject("guestbook");
    $this->setAttributes();
  }

}
?>
